import os
import pickle
import numpy as np

from Config.Config import DPN107_FEATURE_PATH

def load_DPN107_from_file(vid):
    pass



def test1():
    qqq = ['bcRri59F0S8.pkl','hHpcr5tYWso.pkl','NJuf9o45A8U.pkl','tqVzDmYHY8U.pkl','zzE2VrQMvbc.pkl',]
    # BCsfauy69xM.pkl  hhQ1Xbytds4.pkl  NjXCZYO3zwU.pkl  tr1sNwRTMd8.pkl  Z-zG845frso.pkl
    # bCsxg077oP8.pkl  HhtSc4kz3tk.pkl  NjzUWVoc8rw.pkl  tr8JRPrfAN0.pkl  ZZImcxqa1_w.pkl
    filepath = os.path.join(DPN107_FEATURE_PATH,qqq[0])
    with open(filepath,'rb') as f:
        D = pickle.load(f)

    D.keys()
    print(D['frame_count'])
    print(D['feature'].shape)

